#include "List.h"
#include <iostream>
using namespace std;

void TestList1()
{
	List<int> l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);
	l.push_front(1);
	l.push_front(2);
	l.push_front(3);
	l.push_front(4);

	l.pop_back();
	l.pop_back();
	l.pop_front();
	l.pop_front();
	List <int>l2;
	l2 = l;
	auto it = l2.begin();
	while (it != l2.end())
	{
		cout << *it << " ";
		it++;
	}
}

int main()
{
	TestList1();
	return 0;
}